package com.tms.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.operation.mapper.TmsOperationMapper;
import com.tms.operation.domain.TmsOperation;
import com.tms.operation.service.ITmsOperationService;

/**
 * 运单Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-25
 */
@Service
public class TmsOperationServiceImpl implements ITmsOperationService
{
    @Autowired
    private TmsOperationMapper tmsOperationMapper;

    /**
     * 查询运单
     *
     * @param id 运单主键
     * @return 运单
     */
    @Override
    public TmsOperation selectTmsOperationById(Long id)
    {
        return tmsOperationMapper.selectTmsOperationById(id);
    }

    /**
     * 查询运单列表
     *
     * @param tmsOperation 运单
     * @return 运单
     */
    @Override
    public List<TmsOperation> selectTmsOperationList(TmsOperation tmsOperation)
    {
        return tmsOperationMapper.selectTmsOperationList(tmsOperation);
    }

    /**
     * 新增运单
     *
     * @param tmsOperation 运单
     * @return 结果
     */
    @Override
    public int insertTmsOperation(TmsOperation tmsOperation)
    {
        return tmsOperationMapper.insertTmsOperation(tmsOperation);
    }

    /**
     * 修改运单
     *
     * @param tmsOperation 运单
     * @return 结果
     */
    @Override
    public int updateTmsOperation(TmsOperation tmsOperation)
    {
        return tmsOperationMapper.updateTmsOperation(tmsOperation);
    }

    /**
     * 批量删除运单
     *
     * @param ids 需要删除的运单主键
     * @return 结果
     */
    @Override
    public int deleteTmsOperationByIds(Long[] ids)
    {
        return tmsOperationMapper.deleteTmsOperationByIds(ids);
    }

    /**
     * 删除运单信息
     *
     * @param id 运单主键
     * @return 结果
     */
    @Override
    public int deleteTmsOperationById(Long id)
    {
        return tmsOperationMapper.deleteTmsOperationById(id);
    }


}
